package wrapper;

import java.util.Random;
import java.util.Scanner;

public class homework {
    public static void main(String[] args) {
        Random rand = new Random();
        String m="";
        String arr = "1234567890abcdefghijklmnopqrstuvwxyz";
        for (int i = 0; i < 4; i++) {
            char c= arr.charAt(rand.nextInt(arr.length()));
            m += c;
        }
        System.out.println(m);

        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();

        if(m.equalsIgnoreCase(s)){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }


    }
}
